package com.app.controller 
{
	import com.peachcastle.debug.Log; 
	
	import com.app.view.AppMediator;
	import com.app.view.manager.LayerManagerMediator;
	import com.app.view.manager.SceneManagerMediator;
	import com.app.view.manager.DialogManagerMediator;
	import com.app.view.manager.SoundManagerMediator;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	/**
	 * ...
	 * @author kevin
	 */
	public class ViewPrepCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void
		{
			(!Log.console) && facade.registerMediator( new LayerManagerMediator() );
	
			facade.registerMediator( new SceneManagerMediator() );
			facade.registerMediator( new DialogManagerMediator() );
			facade.registerMediator( new SoundManagerMediator() );
			
			var params:* = notification.getBody();
			facade.registerMediator( new AppMediator(params[0]) );
		}
	}

}